package com.imooc.common.plan.service;

import com.imooc.common.plan.handler.DefaultPlanHandler;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.nutz.lang.util.NutMap;

@Data
@Slf4j
public abstract class AbstractPlanService implements DefaultPlanHandler {

    @Override
    public NutMap planCreate() {
        NutMap result = new NutMap();
        String msg = "default AbstractPlanService.planCreate is running...";
        log.error(msg);
        result.put("code",0);
        result.put("msg",msg);
        return result;
    }

    @Override
    public NutMap planExecute() {
        NutMap result = new NutMap();
        String msg = "default AbstractPlanService.planExecute is running...";
        log.error(msg);
        result.put("code",0);
        result.put("msg",msg);
        return result;

    }

    @Override
    public NutMap planFinished() {
        NutMap result = new NutMap();
        String msg = "default AbstractPlanService.planFinished is running...";
        log.error(msg);
        result.put("code",0);
        result.put("msg",msg);
        return result;
    }


}
